package com.joecy.myribbon;

import com.netflix.loadbalancer.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: 陈玉林
 * @modifiedBy:
 * @date: Create In 10:43 2018/10/19
 * @description: 该类必须放置在扫描不到的包下, 或者添加排除, 虽然他必须有注解
 */
@Configuration
@ExcludeAnno
public class MyRibbonConfig {

    @Bean
    public IRule ribbonRule() {
        return new MyRibbonRule();
    }

}

